<?php

class do_qty extends CActiveRecord
{
	/**
     * The followings are the available columns in table 'do_qty':
	 * @var double $do_id
	 * @var string $pkg_type
	 * @var double $length
	 * @var double $height
	 * @var double $width
	 * @var double $wt
	 */

	/**
	 * Returns the static model of the specified AR class.
	 * @return CActiveRecord the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}

	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'do_qty';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		return array(
			array('pkg_type','length','max'=>15),
			array('do_id, pkg_type, length, height, width, wt', 'required'),
			array('do_id, length, height, width, wt', 'numerical'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
            
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'do_id'=>'Do',
			'pkg_type'=>'Pkg Type',
			'length'=>'Length',
			'height'=>'Height',
			'width'=>'Width',
			'wt'=>'Wt',
		);
	}
}